<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="redis" uri="http://www.shopjsp.com/redisTag/functions" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<c:set var="basePath" value="${redis:getSysConfig('base_path_back')}"/>
<script type="text/javascript">

    /**查看生成微信菜单预览**/
	<shiro:hasPermission name="back_gotoMenuInfoPage_preview">
    function previewWxMenu(){
        $.ajax({
            type: "POST",
            dataType: "JSON",
            url: "${basePath}/back/wx/menuInfo/previewMenuInfo.sjson",
            success: function(result){
                /**微信菜单预览**/
                /**重置详情页中所有html展示信息**/
                resetDetailTable("detailTable");
                $("#d_info").html(result.data);
            }
        });
    }
	</shiro:hasPermission>

    /**获取微信服务器菜单信息**/
	<shiro:hasPermission name="back_gotoMenuInfoPage_get">
    function getWxMenu(){
        $.ajax({
            type: "POST",
            dataType: "JSON",
            url: "${basePath}/back/wx/menuInfo/getWxMenu.sjson",
            success: function(result){
                /**微信菜单信息**/
                /**重置详情页中所有html展示信息**/
                resetDetailTable("detailTable");
                $("#d_info").html(result.data);
            }
        });
    }
	</shiro:hasPermission>

</script>

<!--详情模态框（Modal） -->
<div class="modal fade" id="detailModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
	<div class="modal-dialog" style="width:70%">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
				<h5 class="modal-title" id="myModalLabel">微信菜单信息详情</h5>
			</div>
			<div class="modal-body">
				<table id="detailTable" align="center" class="addOrEditTable table table-bordered" style="width:100%;">
					<tr>
						<td class="toright_td" width="150px">详情:</td>
						<td  class="toleft_td" class="text" >&nbsp;&nbsp;<span id="d_info"></span></td>
					</tr>
				</table>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div>
